section {
  flex: 1;
  width: calc(100% - 20rem - 1rem);
  padding-top: 1rem;
  padding-bottom: 1rem;
  .content {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: #fff;
    .category {
      padding: 1rem;
      background: var(--bg-second);
      border-radius: var(--border-radius) var(--border-radius) 0 0;
      border-bottom: 1px solid var(--border-color);
      a {
        padding: 0 12px;
        &.active,
        &:hover {
          color: var(--primary-color);
        }
        &:first-child {
          padding-left: 0;
        }
      }
    }
    .list {
      width: 100%;
      padding: 1rem;
      background-color: var(--bg-second);
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      overflow: hidden;
    }
    .item {
      position: relative;
      &:hover {
        color: inherit;
      }
      &::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        width: 100%;
        height: 1px;
        background: var(--border-color);
      }
    }
    .item + .item {
      margin-top: 2rem;
      display: block;
    }
    .head {
      display: flex;
      align-items: center;
      &:hover {
        .title {
          color: var(--primary-color);
        }
      }
      .title {
        color: var(--main-text-color);
        overflow: hidden;
        font-weight: 600;
        font-size: 16px;
        line-height: 22px;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-synthesis: style;
      }
      .more {
        span {
          color: #8590a6;
        }
        .time {
          margin: 0 8px;
        }
      }
    }
    .body {
      display: flex;
      flex-wrap: nowrap;
      padding-top: 12px;
      & > div {
        flex: 0 0 auto;
        width: 190px;
        max-height: 150px;
        min-height: 100px;
        border-radius: var(--border-radius);
        margin-right: 1rem;
        overflow: hidden;
      }
      dl {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        dd {
          .dot {
            margin: 0 8px;
          }
          .likes,
          .views,
          .shares {
            margin-left: 6px;
          }
        }
      }
    }
    
  }
}

.banner {
  background-color: var(--bg-second);
  margin-bottom: 1rem;
  padding: 0.5rem;
  overflow: hidden;
  .img {
    position: relative;
    display: flex;
    width: 100%;
    height: 316px;
    background-position: 50%;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
  }
  .text {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
    font-size: 1rem;
  }
  h2 {
    color: #fff;
  }
  .dot {
    margin: 0 4px;
  }
}

aside {
  width: 20rem;
  margin-left: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
